package cn.dravenxiaokai.main;

import cn.dravenxiaokai.WeatherServiceImpl;
import lombok.extern.slf4j.Slf4j;

import javax.xml.ws.Endpoint;

/**
 * 采用jdk的方式来发布服务
 */
@Slf4j
public class Main {
    public static void main(String[] args) {
        Endpoint.publish("http://localhost:8080/weatherService", new WeatherServiceImpl());
        log.info("发布成功！");
    }
}
